<%@ taglib uri="http://bhf.org/taglibs/bhs" prefix="bhs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Check our deviations from strict JSON</title>
</head>
<body>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo/yahoo-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/event/event-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/connection/connection-min.js"></script>

    <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/logger/logger-min.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yuitest/yuitest.js"></script>

    <script type="text/javascript" src="bhf-services.js"></script>
    
    <script type="text/javascript">
        var Assert = YAHOO.util.Assert;

        //
        // Check our deviations from strict JSON
        //
        YAHOO.tool.TestRunner.add( new YAHOO.tool.TestCase({
            name: "Check our deviations from strict JSON",

            testUndefined: function()
            {
                Assert.isUndefined( BHF.lang.JSON.parseJSON( "undefined" ) );
            },

            testNull: function()
            {
                Assert.isNull( BHF.lang.JSON.parseJSON( "null" ) );
            }
        }));

        YAHOO.tool.TestManager.load();
        
    </script>
</body>
</html>